﻿using PMS.Core.Configuration.CommonEnumConfigs;
using PMS.Data.Entities.Customers;

namespace PMS.Services.Utils.Events
{
    /// <summary>
    /// Customer account changed event
    /// Loginname
    /// Email
    /// Mobile
    /// </summary>
    public class CustomerAccountChangedEvent : BaseDomainEvent
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="customer">Customer</param>
        /// <param name="bindmode"></param>
        public CustomerAccountChangedEvent(Customer customer, AccountBindMode bindmode)
        {
            Customer = customer;
            Mode = bindmode;
        }

        /// <summary>
        /// Customer
        /// </summary>
        public Customer Customer { get; }

        public AccountBindMode Mode { get; set; }
    }

}
